<template>
    <div class="exam_items" @click="toExam">
      <span>考试{{index +1}}</span>
      <span>{{test.myQuestions[0].tag_Name}}</span>
    </div>
</template>

<script>
  export default {
    name: 'Lise_exam',
    props: [
      'test', 'index'
    ],
    mounted () {
      // console.log(this.test)
    },
    methods: {
      toExam () {
        wx.reLaunch({url: '../exam/main?eindex=' + this.index})
      }
    }
  }
</script>

<style scoped>
  .exam_items{
    display: flex;
    padding: 50rpx;
    background-color: #7aa7ba;
    border-radius: 20rpx;
    margin: 10rpx
  }

  .exam_items span{
    margin-right: 30rpx;
    font-size: 24rpx;
    color: #fffeff;
  }
</style>
